<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="${packageName}.${mapperPath}.${beanName?cap_first}Mapper">

    <!-- 通用查询映射结果 -->
    <resultMap id="BaseResultMap" type="${packageName}.${entityPath}.${beanName?cap_first}">
    <#list fileds as param>
        <result column="${param.columnName}" property="${param.javaColumnName}" />
    </#list>
    </resultMap>

    <!-- 通用查询结果列 -->
    <sql id="Base_Column_List">
     <#list fileds as param>
         <#if (fileds?size!=(param_index)+1) >
         ${param.columnName},
         </#if>
         <#if (fileds?size==(param_index)+1) >
         ${param.columnName}
         </#if>
     </#list>
    </sql>

</mapper>
